﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    public class Employee
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [Required]
        public Guid Id { get; set; }
        /// <summary>
        /// enum:
        //0：领导
        //1：党务人员
        //2：雇员
        /// </summary>
        [Required]
        public int Postion { get; set; }
        /// <summary>
        /// 薪资
        /// </summary>
        [Required]
        public float Salary { get; set; }
        /// <summary>
        /// 上班时间
        /// </summary>
        [Required]
        public DateTime gotowork { get; set; }
        /// <summary>
        /// 下班时间
        /// </summary>
        [Required]
        public DateTime gooffwork { get; set; }
        /// <summary>
        /// 吃饭时间
        /// </summary>
        [Required]
        public DateTime eatTime { get; set; }
        /// <summary>
        /// 睡觉时间
        /// </summary>
        public DateTime sleep { get; set; }
        /// <summary>
        /// 每天做的任务
        /// </summary>
        public string? task { get; set; }
        /// <summary>
        /// 参加工作日期
        /// </summary>
        [Required]
        public DateTime WorkingDate { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        [Required]
        public DateTime AddTime { get; set; }
    }
}
